package com.design.decorator.text;

// 基本的文本编辑器类，实现了文本编辑器接口
class BasicTextEditor implements TextEditor {
    private String fileName;

    @Override
    public void open(String fileName) {
        System.out.println("Opening file: " + fileName);
        this.fileName = fileName;
    }

    @Override
    public void save() {
        System.out.println("Saving file: " + fileName);
    }

    @Override
    public void edit() {
        System.out.println("Editing file: " + fileName);
    }
}
